<%@page import="helpers.UrlHelper"%>
<%
String title = (String) request.getParameter("title");
String description = (String) request.getParameter("description");
String keywords = (String) request.getParameter("keywords");
String ogSiteName = (String) request.getParameter("ogsite_name");
String ogTitle = (String) request.getParameter("ogtitle"); 
String ogUrl = (String) request.getParameter("ogurl");
String ogImage = (String) request.getParameter("ogimage");
String ogDescription = (String) request.getParameter("ogdescription");

String siteName = UrlHelper.getDomainServer(request);

if (title == null)
	title = siteName + " - Tool find whois data information";

if (description == null)
	description = siteName +  " provide full essential information about whois site as domain name, expiration date, creation date, name servers, registran contact info...";

if (keywords == null)
	keywords = "whois,find whois,whois data,whois domain,domain whois,whois services,show whois,whois info,find domain whois,domain,expire domain,name server";

if (ogSiteName == null)
	ogSiteName = siteName + " - Website Whois Tool";

if (ogTitle == null)
	ogTitle = siteName + " - Tool find whois data information";

if (ogDescription == null)
	ogDescription = siteName +  " provide full essential information about whois site as domain name, expiration date, creation date, name servers, registran contact info...";

if (ogUrl == null)
	ogUrl = UrlHelper.getServerUrl(request);

if (ogImage == null)
	ogImage = "http://immediatenet.com/t/t_a?Size=1024x768&URL="+siteName;

%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="description" content="<%=description.replaceAll("[\"\']+", "")%>" >
<meta name="Keywords" content="<%=keywords.replaceAll("[\"\']+", "")%>" >
<meta itemprop="name" content="<%=ogTitle.replaceAll("[\"\']+", "")%>" />    
<meta itemprop="description" content="<%=ogDescription %>" />
<meta property="og:site_name" content="<%=ogSiteName %>" >
<meta property="og:title" content="<%=ogTitle.replaceAll("[\"\']+", "")%>" >
<meta property="og:url" content="<%=ogUrl%>" >
<meta property="og:image" content="<%=ogImage%>" >
<meta property="og:description" content="<%=ogDescription %>" >
<title><%=title%></title>

<link href="/css/bootstrap.css" rel="stylesheet">
<link href="/css/custom.css" rel="stylesheet">
<script type="text/javascript" src="/js/jquery-1.7.2.min.js"></script>
</head>
<body>
	
    <header class="masthead">
    	<div class="container container-narrow">
	    	<div class="row-fluid">
	    		<div class="span6">
	    			<div class="logo">
	        	<h1><a href="/">Site <span class="color">Whois</span></a></h1>
	        	<div class="hmeta">Website check whois info</div>
	        </div>
	    		</div>
	    		<div class="span6">
	    			<div class="form">
						<form class="form-search" action="/goto" id="searchform" method="get">
				           	<input type="text" class="input-medium" id="s" name="q" value="" placeholder="Enter domain">
				            <button class="btn" type="submit">Search</button>
				        </form>
		        	</div>
	    		</div>
	    	</div>
    	</div>
    </header>

	<div class="navbar">
		<div class="navbar-inner">
			<div class="container">
				<a data-target=".nav-collapse" data-toggle="collapse"
					class="btn btn-navbar"> <span>Menu</span> </a>
				<div class="nav-collapse collapse">
					<ul class="nav">
						<li><a href="/">Home</a></li>
						<li><a href="/sitemap">Sitemap</a></li>
					</ul>
				</div>
			</div>
		</div>
	</div>

	<div id="main">
    	<div class="container">